/*******************************************************************
 *   > File Name: sdl2_test.c
 *   > Author: fly
 *   > Mail: lf.ye@samoon.net
 *   > Create Time: 2021-06-04  5/22  07:57:19 +0800
 *================================================================*/

#include <stdio.h>
#include <SDL2/SDL.h>

int main(int argc, char* argv[])
{
    //启动SDL
    if (SDL_Init(SDL_INIT_EVERYTHING) != 0)
    {
        printf("SDL_Init(SDL_INIT_EVERYTHING) Err: %s.\n", SDL_GetError());
        exit(-1);
    }
    printf("SDL_Init(SDL_INIT_EVERYTHING) OK.\n");

    //退出SDL
    SDL_Quit();

    return 0;
}
